<?php
    $event = new BWEvent($eventID);
    $messageList = $event->getMessageManager()->getMessageList();
   ?>
<div style="font-family: 微软雅黑; font-size: 14px; line-height: 28px">
<?php foreach ($messageList as $message) { ?>
<?php 
    $GoodsPrice = $message->getMediaManager()->getMedia('price')->content;
    $messageImage = $message->getMediaManager()->getMedia('image')->content;
   if(strlen($messageImage)>0){
       $GoodsPic = $messageImage;
   }
   else{
       $GoodsPic='#';
   }
?>
    <div style="border-bottom: 1px solid #dedede; padding: 0 8px; margin: 0px; width: 100%; height:180px;">
        <div style="padding:6px 0; color:black;"><?php echo $message->name;?></div>
        <div style="width: 120px; height: 130px; float: left; overflow:hidden;">
            <img src="<?php echo Yii::app()->request->baseUrl.$GoodsPic; ?>" style="width:100%; height:100%;"/>
        </div>
        <div style="padding-left: 12px; float: left;">
            <div style="color:black;">抢购价：<font style="color: red;">￥<?php echo $GoodsPrice;?></font></div>
            <div style="color:black;">原价：<s style="color: gray">￥1895.00</s></div>
            <div style="color:black;">剩余时间：2小时01分49秒</div>
            <div style="color:black; float: left; margin-top: 10px;"><?php echo $control->getLink('商品信息',array('GoodsID' => $message->id,'GoodsName'=>$message->name,'GoodsDsc'=>$message->description)); ?></div> 
            <div style="color:gray; float: left; margin-left: 15px;  margin-top: 8px;">剩余<font style="color: red;">100</font>件</div>
        </div>
    </div>
<?php } ?>
</div>

    
    
    